package it.slothy.noveleditor.starter.test;

import java.util.Random;

public class Dice {
	
	private int value;
	private boolean blocked;
	
	public Dice(){
		this.setValue(new Random().nextInt());
		this.setBlocked(false);
	}

	public int getValue() {
		return value;
	}

	private void setValue(int value) {
		this.value = value;
	}

	public boolean isBlocked() {
		return blocked;
	}

	public void setBlocked(boolean blocked) {
		this.blocked = blocked;
	}

	public void reLaunch() {
		this.setValue(new Random().nextInt());
	}

}
